//配置数据的结构
const { Schema, model } = require('mongoose');
const supplierSchema = new Schema({
  supplierName: String,
  supplierMan: String,
  supplierTel: String,
  supplierEmail: String,
  supplierAddress: String,
  supplierNote: String
}, { versionKey: false });
//配置数据模型
const supplierModel = model('supplierModel', supplierSchema, 'suppliers');

//把配置的数据模型暴露出去
module.exports={
    supplierModel
}